<#assign contextPath=springMacroRequestContext.getContextPath() />
<#import "/public/frame/main.html" as frame />
<@frame.head "南航明珠商城-<#if isupdate>编辑<#else>添加</#if>品牌">
</@frame.head>

<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 后台管理中心 <span class="c-gray en">&gt;</span> 商品管理 <span class="c-gray en">&gt;</span> <#if isupdate>编辑<#else>添加</#if>品牌 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
<form method="post" name="save_brand_form"  id="save_brand_form"  action="${contextPath}/brand/<#if isupdate>update_brand<#else>save_brand</#if>"  >    
   <input type="hidden" name="id" id="brandid" value="${(brand.id?c)!}"  />                        
    <div class="text-c">
    <table class="table">
      <tr>
        <td>品 牌 名:</td>
        <td><input type="text" class="input-text radius"  placeholder="请输入品牌名称" value="${brand.name}" id="name" name="name"/></td>
        <td><font color="red">*</font></td>
      </tr>
      <tr>
        <td>英 文 名：</td>
        <td><input type="text" class="input-text radius"  placeholder="请输入品牌英文名" value="${brand.cname}" id="cname" name="cname"   onKeyUp="value=value.replace(/[^/d|abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]/g,'')" /></td>
        <td>不能输入中文</td>
      </tr>
      <tr>
        <td>品牌描述：</td>
        <td><textarea class="textarea" placeholder="请输入品牌描述" id="description" name="description" maxlength="200">${brand.description}</textarea></td>
        <td><font color="red">*</font>不能超过200个字符</td>
      </tr>
      <tr>
      <td></td>
        <td colspan="2" ><button type="button" class="btn btn-primary radius" onclick="sub_form();">提交</button></td>        
      </tr>
    </table>
    </div>
    
</form>
    
</div>
<@frame.end "default">
</@frame.end>
</html>
<script type="text/javascript" src="${contextPath}/resources/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="${contextPath}/resources/js/laypage/laypage.js"></script>
<script type="text/javascript" src="${contextPath}/resources/js/brand/add_or_update_brand.js"></script>
<script type="text/javascript">
var path="${contextPath}";
</script>